mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-09 01:28:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
27
arch/powerpc/math-emu/fctiw.c
Normal file
27
arch/powerpc/math-emu/fctiw.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
#include <asm/sfp-machine.h>
|
||||
#include <math-emu/soft-fp.h>
|
||||
#include <math-emu/double.h>
|
||||
|
||||
int
|
||||
fctiw(u32 *frD, void *frB)
|
||||
{
|
||||
FP_DECL_D(B);
|
||||
FP_DECL_EX;
|
||||
unsigned int r;
|
||||
|
||||
FP_UNPACK_DP(B, frB);
|
||||
FP_TO_INT_D(r, B, 32, 1);
|
||||
frD[1] = r;
|
||||
|
||||
#ifdef DEBUG
|
||||
printk("%s: D %p, B %p: ", __func__, frD, frB);
|
||||
dump_double(frD);
|
||||
printk("\n");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue