X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=arch%2Farm%2Fvfp%2Fvfp.h;h=f2797896e6d5dbcc488f5c9b0be9f1ce497d7843;hb=5f56bbdf1e35d41b4b3d4c92bdb3e70c63877e4d;hp=96fdf30f6a3bb2098a39c5907ea89cd983a95b90;hpb=623b3e1d645e42030897d18d37db10133d763006;p=powerpc.git diff --git a/arch/arm/vfp/vfp.h b/arch/arm/vfp/vfp.h index 96fdf30f6a..f2797896e6 100644 --- a/arch/arm/vfp/vfp.h +++ b/arch/arm/vfp/vfp.h @@ -355,3 +355,18 @@ u32 vfp_estimate_sqrt_significand(u32 exponent, u32 significand); * we check for an error. */ #define VFP_EXCEPTION_ERROR ((u32)-1 & ~VFP_NAN_FLAG) + +/* + * A flag to tell vfp instruction type. + * OP_SCALAR - this operation always operates in scalar mode + * OP_SD - the instruction exceptionally writes to a single precision result. + * OP_DD - the instruction exceptionally writes to a double precision result. + */ +#define OP_SCALAR (1 << 0) +#define OP_SD (1 << 1) +#define OP_DD (1 << 1) + +struct op { + u32 (* const fn)(int dd, int dn, int dm, u32 fpscr); + u32 flags; +};