When was the  Brāhmasphuṭasiddhānta written?
Brāhmasphuṭasiddhānta
The Brāhmasphuṭasiddhānta ("Correctly Established Doctrine of Brahma", abbreviated BSS)
is the main work of Brahmagupta, written c. 628. Τhis text of mathematical astronomy contains significant mathematical content, including a good understanding of the role of zero, rules for manipulating both negative and positive numbers, a method for computing square roots, methods of solving linear and quadratic equations, and rules for summing series, Brahmagupta's identity, and Brahmagupta’s theorem.
Triṃśikā-vijñaptimātratā
The Triṃśikā-vijñaptimātratā (Sanskrit; ), also known simply as the Triṃśikā or occasionally by is English translation Thirty Verses on Manifestation Only, is a brief poetic treatise by the Indian Buddhist monk Vasubandhu. It was composed in the 4th or 5th century CE and became one of the core texts for the Yogācāra school of Mahāyāna Buddhism. In it he touches on foundational Yogācāra concepts such as the storehouse consciousness, the afflicted mental consciousness, and the three natures, among others. Together with the "Vimśatikā" form a standard summary of Vasubandhu's understanding of Yogācāra. 
The "Triṃśikā" was translated into Chinese by Xuanzang in 648 CE at Hongfu Monastery. It was also translated into Tibetan in antiquity. A version in the original Sanskrit also survives.
In India, the most influential commentary on the "Triṃśikā" was written by Sthiramati in the 6th century. According to Xuanzang, who studied the "Triṃśikā" at Nalanda in the 7th century under Śīlabhadra, there were 10 known prose commentaries on the text. These were by Sthiramati, Dharmapala of Nalanda, Nanda, Citrabhānu, Guṇamati, Jinamitra, Jñānamitra, Jñānacandra, Bandhuśrī, Śuddhacandra, and Jinaputra. Xuanzang initially intended to translate all of these, but on the advice of his students, especially Kuiji, Xuanzang instead chose to combine them into a single text that focused primarily on Dharmapala's commentary. He did so because his teacher Śīlabhadra was a student of Dharmapala, and thus Xuanzang believed Dharmapala's interpretation to be the most accurate. Among the others commentators, Xuanzang most often included excerpts from Sthiramati, Nanda, and Citrabhānu, but usually only to provide contrast with Dharmapala. The result of this work was the "Cheng Weishi Lun", which became the most important text for the tradition of East Asian Yogācāra. Xuanzang's student Kuiji in turn created his own commentary on this text, the Cheng weishi lun shuji.