There is no difference in asembler on 32 bit machine before and after modification.
/////////////////////////////////////////////////////
0001f6d0 <tzip_release@@Base>:
1f6d0: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
1f6d4: 4606 mov r6, r0
1f6d6: 4840 ldr r0, [pc, #256] ; (1f7d8 <tzip_release@@Base+0x108>)
1f6d8: b085 sub sp, #20
1f6da: 460d mov r5, r1
1f6dc: 4478 add r0, pc
1f6de: af04 add r7, sp, #16
1f6e0: 4671 mov r1, lr
1f6e2: 4674 mov r4, lr
1f6e4: f7f0 fb1c bl fd20 <__cyg_profile_func_enter@@Base>
1f6e8: 2e00 cmp r6, #0
1f6ea: d057 beq.n 1f79c <tzip_release@@Base+0xcc>
1f6ec: b125 cbz r5, 1f6f8 <tzip_release@@Base+0x28>
1f6ee: e9d5 8904 ldrd r8, r9, [r5, #16]
1f6f2: ea58 0309 orrs.w r3, r8, r9
////////////////////////////////////////////////////////////
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Idf720210ac1012cc3aa3996b740718cf9ad94332
if (sem_init(&handle->lock, 0, 1) == -1)
_E("sem_init failed");
-#ifdef ARCH_32BIT
- int hd = (int)handle;
- fi->fh = (uint64_t)hd;
-#else
- fi->fh = (uint64_t)handle;
-#endif
+ fi->fh = (uint64_t)(unsigned long)handle;
+
return 0;
out_unlock:
return -EINVAL;
}
-#ifdef ARCH_32BIT
- int hd = (int)fi->fh;
- handle = (struct tzip_handle *)hd;
-#else
- handle = (struct tzip_handle *)(fi->fh);
-#endif
+ handle = (struct tzip_handle *)(unsigned long)(fi->fh);
_D("Read - Path : %s size : %zd offset : %jd ", path, size, offset);
sem_wait(&handle->lock);
return -EINVAL;
}
-#ifdef ARCH_32BIT
- int hd = (int)fi->fh;
- handle = (struct tzip_handle *)hd;
-#else
- handle = (struct tzip_handle *)(fi->fh);
-#endif
+ handle = (struct tzip_handle *)(unsigned long)(fi->fh);
if (sem_destroy(&handle->lock) == -1)
_E("sem_destroy failed");