• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2011 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "Dalvik.h"
18 #include "native/InternalNativePriv.h"
19 
Float_floatToIntBits(const u4 * args,JValue * pResult)20 static void Float_floatToIntBits(const u4* args, JValue* pResult)
21 {
22     MAKE_INTRINSIC_TRAMPOLINE(javaLangFloat_floatToIntBits);
23 }
24 
Float_floatToRawIntBits(const u4 * args,JValue * pResult)25 static void Float_floatToRawIntBits(const u4* args, JValue* pResult)
26 {
27     MAKE_INTRINSIC_TRAMPOLINE(javaLangFloat_floatToRawIntBits);
28 }
29 
Float_intBitsToFloat(const u4 * args,JValue * pResult)30 static void Float_intBitsToFloat(const u4* args, JValue* pResult)
31 {
32     MAKE_INTRINSIC_TRAMPOLINE(javaLangFloat_intBitsToFloat);
33 }
34 
35 const DalvikNativeMethod dvm_java_lang_Float[] = {
36     { "floatToIntBits",    "(F)I", Float_floatToIntBits },
37     { "floatToRawIntBits", "(F)I", Float_floatToRawIntBits },
38     { "intBitsToFloat",    "(I)F", Float_intBitsToFloat },
39     { NULL, NULL, NULL },
40 };
41