Using L for type long results in clang passing 64-bit integers to these intrinsics on LP64 operating systems. This isn't correct as the intrinsics accept 32-bit integers.
Use N instead of L so that 32-bit integers are passed to the intrinsics on LP64 operating systems too. This is the same fix as the following two commits:
33703fb9f908113f93bd9af83a79eb56f5131735
afa47c91ce5085d446ebb5ac1312dc98b6a68a6c