From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/powerpc/math-emu/mtfsb1.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ANDROID_3.4.5/arch/powerpc/math-emu/mtfsb1.c (limited to 'ANDROID_3.4.5/arch/powerpc/math-emu/mtfsb1.c') diff --git a/ANDROID_3.4.5/arch/powerpc/math-emu/mtfsb1.c b/ANDROID_3.4.5/arch/powerpc/math-emu/mtfsb1.c new file mode 100644 index 00000000..fe6ed5ac --- /dev/null +++ b/ANDROID_3.4.5/arch/powerpc/math-emu/mtfsb1.c @@ -0,0 +1,19 @@ +#include +#include +#include + +#include +#include + +int +mtfsb1(int crbD) +{ + if ((crbD != 1) && (crbD != 2)) + __FPU_FPSCR |= (1 << (31 - crbD)); + +#ifdef DEBUG + printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR); +#endif + + return 0; +} -- cgit