CN105095641B - A kind of method and apparatus for calculating spatial content - Google Patents

A kind of method and apparatus for calculating spatial content Download PDF

Info

Publication number
CN105095641B
CN105095641B CN201510288614.9A CN201510288614A CN105095641B CN 105095641 B CN105095641 B CN 105095641B CN 201510288614 A CN201510288614 A CN 201510288614A CN 105095641 B CN105095641 B CN 105095641B
Authority
CN
China
Prior art keywords
million
software
numbers
bit number
calculated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510288614.9A
Other languages
Chinese (zh)
Other versions
CN105095641A (en
Inventor
柏凤佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510288614.9A priority Critical patent/CN105095641B/en
Publication of CN105095641A publication Critical patent/CN105095641A/en
Application granted granted Critical
Publication of CN105095641B publication Critical patent/CN105095641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and apparatus for calculating spatial content, including:Million numbers corresponding to bit number calculating according to required for software;Using be calculated million numbers as million current numbers, the bit number according to corresponding to calculating million current numbers;Judge that the bit number being calculated is less than the bit number required for the software, according to million numbers required for million current number software for calculation;Wherein, bit number corresponding to million numbers required for the software being calculated is more than the bit number required for software.Pass through the solution of the present invention, in the bit number required for judging that the bit number being calculated is less than the software, according to million numbers required for the bit number being calculated and current million number software for calculation, so that required for the software being calculated million number corresponding to bit number be more than software required for bit number, so as to improve the software compatibility.

Description

A kind of method and apparatus for calculating spatial content
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of method and apparatus for calculating spatial content.
Background technology
Particularly significant, the good software compatibility of the software compatibility issue of intelligent mobile terminal (such as smart mobile phone) at present The Consumer's Experience of mobile terminal can be effectively lifted, effectively lifts the core competitiveness of product.
One important process of software compatibility issue is that the space required for software is held in software installation process The calculating of amount, the existing method for calculating spatial content generally comprise:
According to formulaCalculate the spatial content for distributing to software;
Wherein, SizeMb is million numbers required for software, and SizeBytes is the bit number required for software.
In the existing method for calculating spatial content, when 32-bit operating system (OS, Operating System) operates in When on the hardware platform of 64, due to needing to carry out the conversion of 32 to 64 in installation software process, required for causing software Spatial content it is bigger than practically necessary spatial content, especially when the installation kit of software is larger, may result in system It is inadequate to distribute to the spatial content of software, so as to cause to be reported an error in installation process, therefore, the software compatibility is relatively low.
The content of the invention
It is a primary object of the present invention to propose a kind of method and apparatus for calculating spatial content, it is possible to increase softwarecompatible Property.
To achieve the above object, a kind of method for calculating spatial content provided by the invention, including:
Million numbers corresponding to bit number calculating according to required for software;
Using be calculated million numbers as million current numbers, the bit number according to corresponding to calculating million current numbers;
Judge that the bit number being calculated is less than the bit number required for the software, counted according to million current numbers Calculate million numbers required for software;Wherein, bit number corresponding to million numbers required for the software being calculated is more than required for software Bit number.
Preferably, the bit number required for judging that the bit number being calculated is more than or equal to the software When, this method also includes:
Million numbers required for determining the software are the million current numbers.
Preferably, million numbers required for million current number software for calculation of the basis include:
By current million numbers plus 1, continue executing with million current numbers of the basis calculate corresponding to bit number the step of.
Preferably, million numbers required for million current number software for calculation of the basis include:
Million numbers required for the software are calculated according to formula S izeMb=SizeMb1 (1+ Δs)+1;
Wherein, SizeMb is million numbers required for the software, and SizeMb1 is the million current numbers, △ for it is fault-tolerant because Son.
Preferably, according to formulaCalculate the fault-tolerant factor;Wherein, SizeMb0 is the software Million numbers or preset value corresponding to required bit number.
The invention also provides a kind of device for calculating spatial content, comprise at least:
First computing module, for million numbers corresponding to the bit number calculating according to required for software;
Second computing module, for using be calculated million numbers as million current numbers, calculating pair to be counted according to current million The bit number answered;
3rd computing module, for judging the bit number being calculated less than the bit required for the software Number, according to million numbers required for million current number software for calculation;Wherein, compare corresponding to million numbers required for the software being calculated Special number is more than the bit number required for software.
Preferably, the 3rd computing module is additionally operable to:
Judge the bit number that the bit number being calculated is more than or equal to required for the software, determine described soft Million numbers required for part are the million current numbers.
Preferably, the 3rd computing module is specifically used for:
Judge that the bit number being calculated is less than the bit number required for the software, by the million current numbers Add 1, sent a notification message to second computing module;
Second computing module is additionally operable to:
Receive the notification message, continue executing with million current numbers of the basis calculate corresponding to bit number the step of.
Preferably, the 3rd computing module is specifically used for:
Judge that the bit number being calculated is less than the bit number that the software needs, according to formula S izeMb= SizeMb1 (1+ Δs)+1 calculates million numbers required for the software;
Wherein, SizeMb is million numbers required for the software, and SizeMb1 is the million current numbers, △ for it is fault-tolerant because Son.
Preferably, the 3rd computing module is specifically used for:
Judge that the bit number being calculated is less than the bit number needed described in the software,
According to formulaCalculate the fault-tolerant factor;
Million numbers required for the software are calculated according to formula S izeMb=SizeMb1 (1+ Δs)+1;
Wherein, SizeMb is million numbers required for the software, and SizeMb0 is that the bit number required for the software is corresponding Million numbers or preset value, SizeMb1 is the million current numbers, and △ is the fault-tolerant factor.
Compared with prior art, the present invention includes:Million numbers corresponding to bit number calculating according to required for software;It will calculate Million obtained numbers are as million current numbers, the bit number according to corresponding to calculating million current numbers;It is calculated described in judging Bit number is less than the bit number required for the software, according to million numbers required for million current number software for calculation;Wherein, calculate Bit number corresponding to million numbers required for obtained software is more than the bit number required for software.By the solution of the present invention, Judge the bit number being calculated be less than the software required for bit number when, according to million current number software for calculation Million required numbers so that bit number corresponding to million numbers required for the software being calculated is more than the bit required for software Number, so as to improve the software compatibility.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart for the method that first embodiment of the invention calculates spatial content;
Fig. 4 is the structure composition schematic diagram for the device that second embodiment of the invention calculates spatial content;
Fig. 5 is the flow chart for the method that third embodiment of the invention calculates spatial content;
Fig. 6 is the flow chart for the method that fourth embodiment of the invention calculates spatial content.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the present invention referring now to accompanying drawing.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be advantageous to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP The mobile terminal of (portable media player), guider etc. and such as digital TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that except being used in particular for moving Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal for the mobile terminal for realizing each embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, it is at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information that the server or reception of broadcast singal and/or broadcast related information generate before And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can be broadcasted by using various types of broadcast system reception signals.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hold (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one in server and/or receive from it radio signal.Such radio signal can lead to including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 calculates and comes from three or more satellites Range information and correct time information and for the Information application triangulation of calculating, so as to according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended for the method for calculation position and temporal information using three Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 1220, camera 121 in video acquisition mode or image capture mode by image capture apparatus obtain static map The view data of piece or video is handled.Picture frame after processing may be displayed on display unit 151.At camera 121 Picture frame after reason can be stored in memory 160 (or other storage mediums) or be carried out via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (voice data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action Such acoustic processing is voice data.Audio (voice) data after processing can be changed in the case of telephone calling model For the output of the form of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can implement all kinds Noise eliminate (or suppress) algorithm with eliminate (or suppression) during receiving and sending audio signal caused noise or Person disturbs.
User input unit 130 can control each of mobile terminal according to the order generation key input data that user inputs Kind operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (for example, sensitive component of detection change of resistance, pressure, electric capacity etc. caused by being touched), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the presence or absence of the contact (that is, touch input) of the position of mobile terminal 100, user for mobile terminal 100, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which can include proximity transducer 1410, to be combined below This is described touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 100 Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device with identification module can (hereinafter referred to as " identification device ") take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 100.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 may be used as allowing by it by electricity Power provides to the path of mobile terminal 100 from base or may be used as allowing to pass through it from the various command signals that base inputs It is transferred to the path of mobile terminal.It may be used as being used to identify that mobile terminal is from the various command signals or electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to defeated with the offer of vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed in mobile terminal 100 information handled.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is receiving or in memory 160 by wireless communication unit 110 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and to export be sound.Moreover, dio Output Modules 152 can provide and movement The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 performs. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output so that event is notified to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video exports, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration There is provided output, when receive calling, message or some it is other enter communication (incomingcommunication) when, alarm list Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by tactile as offer, even in When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can be with performing memory by network connection The network storage device cooperation of 160 store function.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 performs and voice call, data Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) more matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or be can be structured as and controlled Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or figure Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system operate.
The communication system that can be wherein operated according to the mobile terminal of the present invention referring now to Fig. 2 descriptions.
Such communication system can use different air interface and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to figure 2, cdma wireless communication system can include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. If back haul link can construct according to any of interface that Ganji knows, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or each subregion can be by two or more for diversity reception Antenna covers.Each BS270, which may be constructed such that, supports multiple frequency distribution, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or specific BS270 each subregion can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals It is at least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that, any number of satellite can be utilized to obtain useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning Breath.Substitute GPS tracking techniques or outside GPS tracking techniques, the other of the position that can track mobile terminal can be used Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 generally participates in call, information receiving and transmitting and other types of communication.Certain base station 270 receives each anti- Handled to link signal in specific BS270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
As shown in figure 3, first embodiment of the invention proposes a kind of method for calculating spatial content, including:
Million numbers corresponding to step 300, the bit number calculating according to required for software.
In this step, bit number that the bit number required for software is included by software installation bag, the lib place bags quoted Between the bit number that the bit number and the data place of reference contained includes and value.
In this step, according to formulaMillion corresponding to bit number required for software for calculation Number.
Wherein, million numbers corresponding to bit numbers of the SizeMb0 required for software, SizeBytes are the ratio required for software Special number.
Step 301, using be calculated million numbers as million current numbers, according to bit corresponding to million current number calculating Number.
In this step, bit number corresponding to million current numbers is calculated according to formula S izeBytes0=1024SizeMb1.
Wherein, SizeMb1 is million current numbers, and SizeBytes0 is bit number corresponding to million current numbers.
Step 302, the bit number for judging to be calculated are less than the bit number required for software, are counted according to million current numbers Calculate million numbers required for software.
In this step, bit number corresponding to million numbers required for the software being calculated is more than the bit required for software Number.
In this step, when the bit number required for the bit number for judging to be calculated is more than or equal to software, it is determined that Million numbers required for software are the million current numbers.
In this step, included according to million numbers required for million current number software for calculation:
By current million number plus 1, the step of continuing executing with the bit number according to corresponding to calculating million current numbers.
Or million current numbers are added 1;According to required for formula S izeMb=SizeMb1 (1+ Δs)+1 software for calculation Million numbers;Wherein, SizeMb is million numbers required for software, and SizeMb1 is million current numbers, and △ is the fault-tolerant factor.
Wherein, according to formulaCalculate the fault-tolerant factor;
Wherein, million numbers or preset value corresponding to bit numbers of the SizeMb0 required for software.
Wherein, preset value can be million number corresponding to the maximum number bits required for the software that can be installed.
By the solution of the present invention, the bit required for judging that the bit number being calculated is less than the software During number, according to million numbers required for the bit number being calculated and current million number software for calculation so that the software being calculated Million required numbers are more than million number corresponding to the bit number required for software, so as to improve the software compatibility.
Referring to Fig. 4, second embodiment of the invention further provides for a kind of device for calculating spatial content, comprises at least:
First computing module, for million numbers corresponding to the bit number calculating according to required for software;
Second computing module, for using be calculated million numbers as million current numbers, calculating pair to be counted according to current million The bit number answered;
3rd computing module, for judging the bit number being calculated less than the bit required for the software Number, according to million numbers required for million current number software for calculation;Wherein, compare corresponding to million numbers required for the software being calculated Special number is more than the bit number required for software.
Wherein, the first computing module, the second computing module and the 3rd computing module can be arranged on Fig. 1 controller In 180.
In the device of the present invention, the 3rd computing module is additionally operable to:
Judge the bit number that the bit number being calculated is more than or equal to required for software, determine million required for software Number is million current numbers.
In the device of the present invention, the 3rd computing module is specifically used for:
The bit number for judging to be calculated is less than the bit number required for software, and million current numbers plus 1 are counted to second Module is calculated to send a notification message;
Second computing module is additionally operable to:
Notification message is received, the step of continuing executing with the bit number according to corresponding to calculating million current numbers.
In the device of the present invention, the 3rd computing module is specifically used for:
The bit number for judging to be calculated is less than the bit number that software needs, according to formula S izeMb=SizeMb1 (1+ Δ) million numbers required for+1 software for calculation;
Wherein, SizeMb is million numbers required for software, and SizeMb1 is million current numbers, and △ is the fault-tolerant factor.
In the device of the present invention, the 3rd computing module is specifically used for:
The bit number for judging to be calculated is less than the bit number that software needs,
According to formulaCalculate the fault-tolerant factor;
According to million numbers required for formula S izeMb=SizeMb1 (1+ Δs)+1 software for calculation;
Wherein, SizeMb be software required for million numbers, SizeMb0 be software required for bit number corresponding to million number or Preset value, SizeMb1 are million current numbers, and △ is the fault-tolerant factor.
The method for describing the present invention in detail below by specific embodiment.
3rd embodiment, referring to Fig. 5, this method includes:
Step 500, according to formulaMillion corresponding to bit number required for software for calculation Number.
Step 501, using be calculated million numbers as million current numbers, according to bit corresponding to million current number calculating Number.
Whether the bit number that step 502, judgement are calculated is less than the bit number required for software, if it is, performing Step 503;If it is not, then perform step 504.
Step 503, by current million number plus 1, and perform step 501.
Step 504, million numbers for determining to need described in software are million current numbers.
Fourth embodiment, referring to Fig. 6, this method includes:
Step 600, according to formulaMillion corresponding to bit number required for software for calculation Number.
Step 601, using be calculated million numbers as million current numbers, according to bit corresponding to million current number calculating Number.
Whether the bit number that step 602, judgement are calculated is less than the bit number required for software, if it is, performing Step 603;If it is not, then perform step 604.
Step 603, according to formulaCalculate the fault-tolerant factor;According to formula S izeMb=SizeMb1 (1 + Δ)+1 calculate million numbers required for the software.
Step 604, million numbers for determining to need described in software are million current numbers.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (6)

  1. A kind of 1. method for calculating spatial content, it is characterised in that including:
    Million numbers corresponding to bit number calculating according to required for software;
    Using be calculated million numbers as million current numbers, the bit number according to corresponding to calculating million current numbers;
    Judge that the bit number being calculated is less than the bit number required for the software, calculated according to million current numbers soft Million numbers required for part;Wherein, bit number corresponding to million numbers required for the software being calculated is more than the ratio required for software Special number;
    Million numbers required for million current number software for calculation of the basis include:
    By current million numbers plus 1, continue executing with million current numbers of the basis calculate corresponding to bit number the step of;
    Million numbers required for the software are calculated according to formula S izeMb=SizeMb1 (1+ Δs)+1;
    Wherein, SizeMb is million numbers required for the software, and SizeMb1 is the million current numbers, and △ is the fault-tolerant factor.
  2. 2. according to the method for claim 1, it is characterised in that when judging that the bit number being calculated is more than or waits When bit number required for the software, this method also includes:
    Million numbers required for determining the software are the million current numbers.
  3. 3. according to the method for claim 1, it is characterised in that according to formulaCalculate it is described it is fault-tolerant because Son;Wherein, million numbers or preset value corresponding to bit numbers of the SizeMb0 required for the software.
  4. 4. a kind of device for calculating spatial content, it is characterised in that comprise at least:
    First computing module, for million numbers corresponding to the bit number calculating according to required for software;
    Second computing module, for using be calculated million numbers as million current numbers, being counted according to current million corresponding to calculating Bit number;
    3rd computing module, for judging the bit number being calculated less than the bit number required for the software, root According to million numbers required for million current number software for calculation;Wherein, bit number corresponding to million numbers required for the software being calculated More than the bit number required for software;
    3rd computing module is specifically used for:
    Judge that the bit number being calculated is less than the bit number required for the software, the million current numbers added 1, Sent a notification message to second computing module;
    Second computing module is additionally operable to:
    Receive the notification message, continue executing with million current numbers of the basis calculate corresponding to bit number the step of;
    Judge that the bit number being calculated is less than the bit number that the software needs, according to formula S izeMb= SizeMb1 (1+ Δs)+1 calculates million numbers required for the software;
    Wherein, SizeMb is million numbers required for the software, and SizeMb1 is the million current numbers, and △ is the fault-tolerant factor.
  5. 5. device according to claim 4, it is characterised in that the 3rd computing module is additionally operable to:
    Judge the bit number that the bit number being calculated is more than or equal to required for the software, determine the software institute Million numbers needed are the million current numbers.
  6. 6. device according to claim 4, it is characterised in that the 3rd computing module is specifically used for:
    Judge that the bit number being calculated is less than the bit number needed described in the software,
    According to formulaCalculate the fault-tolerant factor;
    Million numbers required for the software are calculated according to formula S izeMb=SizeMb1 (1+ Δs)+1;
    Wherein, SizeMb be the software required for million numbers, SizeMb0 be the software required for bit number corresponding to million Number or preset value, SizeMb1 are the million current numbers, and △ is the fault-tolerant factor.
CN201510288614.9A 2015-05-29 2015-05-29 A kind of method and apparatus for calculating spatial content Active CN105095641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510288614.9A CN105095641B (en) 2015-05-29 2015-05-29 A kind of method and apparatus for calculating spatial content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510288614.9A CN105095641B (en) 2015-05-29 2015-05-29 A kind of method and apparatus for calculating spatial content

Publications (2)

Publication Number Publication Date
CN105095641A CN105095641A (en) 2015-11-25
CN105095641B true CN105095641B (en) 2018-04-03

Family

ID=54576059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510288614.9A Active CN105095641B (en) 2015-05-29 2015-05-29 A kind of method and apparatus for calculating spatial content

Country Status (1)

Country Link
CN (1) CN105095641B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377069A (en) * 2012-04-26 2013-10-30 东方有线网络有限公司 Novel method for achieving virtual calculation deployment based on writing of log files into plug-in network attached storage (NAS)
CN103473091A (en) * 2011-01-21 2013-12-25 北京奇虎科技有限公司 Method and system for software migration and installation for computing equipment
CN104239686A (en) * 2014-08-12 2014-12-24 浪潮通用软件有限公司 Method for realizing formula computation in comprehensive budget based on memory computation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140122158A1 (en) * 2012-10-26 2014-05-01 International Business Machines Corporation License Meta-Model for Automatic License Reasoning

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473091A (en) * 2011-01-21 2013-12-25 北京奇虎科技有限公司 Method and system for software migration and installation for computing equipment
CN103377069A (en) * 2012-04-26 2013-10-30 东方有线网络有限公司 Novel method for achieving virtual calculation deployment based on writing of log files into plug-in network attached storage (NAS)
CN104239686A (en) * 2014-08-12 2014-12-24 浪潮通用软件有限公司 Method for realizing formula computation in comprehensive budget based on memory computation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
内存集群计算:交互式数据分析;黄岚等;《华东师范大学学报(自然科学版)》;20140930(第5期);第216-227页 *
基于内存计算的大规模图数据管理研究;袁培森等;《华东师范大学学报(自然科学版)》;20140930(第5期);第55-70页 *

Also Published As

Publication number Publication date
CN105095641A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN104735255B (en) Multi-screen display method and system
CN104731512B (en) The method, apparatus and terminal that picture is shared
CN105098895B (en) The device and method of charge control
CN104980588B (en) A kind of method and apparatus for detecting mobile terminal state
CN104850799B (en) The method and mobile terminal of a kind of data in hiding mobile terminal
CN104820555B (en) The method, apparatus and terminal of horizontal/vertical screen switching
CN104850443B (en) A kind of method and mobile terminal for closing error starting application program
CN107071760A (en) Data service automatic switching method and mobile terminal
CN105357367B (en) Recognition by pressing keys device and method based on pressure sensor
CN104915111B (en) terminal operation control method and device
CN104915127B (en) A kind of membrane keyboard method to set up and device and mobile terminal
CN104731456B (en) Desktop widget display methods and device
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN104917233B (en) Charging control method, device and system
CN104917891B (en) A kind of mobile terminal and its flipping-over control method
CN106973408A (en) Antenna allocation method and device
CN104951229B (en) Screenshot method and device
CN106803860A (en) The storage processing method and device of a kind of terminal applies
CN107087074A (en) A kind of method, device and terminal for adjusting screen intensity
CN105764085A (en) Abnormal electricity consumption detection method and terminal
CN105245938A (en) Device and method for playing multimedia files
CN106791141A (en) A kind of method of adjustment and mobile terminal of sound effect parameters of conversing
CN106993084A (en) The method, device and mobile terminal that a kind of control information is shown
CN106791155A (en) A kind of volume adjustment device, volume adjusting method and mobile terminal
CN106658470A (en) Master card setting device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant